﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Presentation/Main2.Master" AutoEventWireup="true" CodeBehind="Admin_EditScreenTime1.aspx.cs" Inherits="YAMN_Cinemas.Presentation.Admin_EditScreenTime1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
    <style type="text/css">
        .style13
        {
            width: 880px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <tr>
        <td>
<div style="height: 352px; text-align: center; width: 1401px; margin-left: 80px;">
    
        <br /><center style="margin-left: 440px">
        <asp:Label ID="Label2" runat="server" Font-Bold="True" Font-Size="XX-Large" 
            ForeColor="Red" Text="Create/Edit Screen Timings"></asp:Label></center>
        <br />
        <br />
        <br />
        <center style="margin-left: 440px">
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            DataKeyNames="STID" DataSourceID="ObjectDataSource1">
            <Columns>
                <asp:BoundField DataField="STID" HeaderText="STID" InsertVisible="False" 
                    ReadOnly="True" SortExpression="STID" />
                <asp:BoundField DataField="Screen_Time" HeaderText="Screen_Time" 
                    SortExpression="Screen_Time" />
                <asp:BoundField DataField="Description" HeaderText="Description" 
                    SortExpression="Description" />
                <asp:CommandField ShowEditButton="True" />
            </Columns>
        </asp:GridView></center>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
            DeleteMethod="Delete" InsertMethod="Insert" 
            OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" 
            TypeName="YAMN_Cinemas.ScreenTimingDataSetTableAdapters.Screen_TimingsTableAdapter" 
            UpdateMethod="Update">
            <DeleteParameters>
                <asp:Parameter Name="Original_STID" Type="Int64" />
            </DeleteParameters>
            <InsertParameters>
                <asp:Parameter Name="Screen_Time" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
            </InsertParameters>
            <UpdateParameters>
                <asp:Parameter Name="Screen_Time" Type="String" />
                <asp:Parameter Name="Description" Type="String" />
                <asp:Parameter Name="Original_STID" Type="Int64" />
            </UpdateParameters>
        </asp:ObjectDataSource>
        <br />
        <table class="style1">
            <tr>
                <td id="lbl_AddScreenTime" class="style13" style="text-align: right">
                    <asp:Label ID="Label1" runat="server" style="text-align: right" 
                        Text="Screen Time:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txt_ScreenTime" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                        ControlToValidate="txt_ScreenTime" ErrorMessage="Please enter the Screen Time." 
                        ForeColor="Red" ToolTip="Please enter the Screen Time.">*</asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td class="style13" style="text-align: right">
                    <asp:Label ID="lbl_description" runat="server" Text="Description:"></asp:Label>
                </td>
                <td style="text-align: left">
                    <asp:TextBox ID="txt_Desciption" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                        ControlToValidate="txt_Desciption" ErrorMessage="Please enter the Description." 
                        ForeColor="Red" ToolTip="Please enter the Description.">*</asp:RequiredFieldValidator>
                    <br />
                </td>
            </tr>
        </table>
        <br />
       <center style="margin-left: 400px"> <asp:Button ID="btn_ScreenTime" runat="server" onclick="btn_ScreenTime_Click" 
            Text="Submit" />
&nbsp;&nbsp;
        <asp:Button ID="btn_CancelScreenTime" runat="server" 
            onclick="btn_CancelScreenTime_Click" Text="Cancel" 
            CausesValidation="False" /></center>
&nbsp;
        <br />
        <br />
        <br />
        <br />
    
    </div>
        </td>
    </tr>
</asp:Content>
